enableSaving [false,false];
enableTeamswitch false;
enableSentences false;

// Add default respawn inventories
[west,"b_soldier_f"] call BIS_fnc_addRespawnInventory;			//Rifleman
[west,"b_soldier_ar_f"] call BIS_fnc_addRespawnInventory;		//Auto-Rifleman
[west,"b_soldier_lat_f"] call BIS_fnc_addRespawnInventory;		//Light AT
[west,"b_medic_f"] call BIS_fnc_addRespawnInventory;			//Medic
[west,"B_soldier_repair_F"] call BIS_fnc_addRespawnInventory;	//Repair Specialist

// Add default respawn position
[west, "nato_respawn"] call BIS_fnc_addRespawnPosition;

// Add Arsenal Equipment
if (("ArsenalRestrict" call BIS_fnc_getParamValue) == 1) then {
	[missionNamespace,"%ALL"] call BIS_fnc_addVirtualBackpackCargo;		// Add all backpacks
	[missionNamespace,
		["O_Mortar_01_support_F",
		"I_Mortar_01_support_F",
		"O_Mortar_01_weapon_F",
		"I_Mortar_01_weapon_F",
		"O_HMG_01_support_F",
		"I_HMG_01_support_F",
		"O_HMG_01_support_high_F",
		"I_HMG_01_support_high_F",
		"O_HMG_01_weapon_F",
		"I_HMG_01_weapon_F",
		"O_HMG_01_A_weapon_F",
		"I_HMG_01_A_weapon_F",
		"O_GMG_01_weapon_F",
		"I_GMG_01_weapon_F",
		"O_GMG_01_A_weapon_F",
		"I_GMG_01_A_weapon_F",
		"O_HMG_01_high_weapon_F",
		"I_HMG_01_high_weapon_F",
		"O_HMG_01_A_high_weapon_F",
		"I_HMG_01_A_high_weapon_F",
		"O_GMG_01_high_weapon_F",
		"I_GMG_01_high_weapon_F",
		"O_GMG_01_A_high_weapon_F",
		"I_GMG_01_A_high_weapon_F",
		"O_AA_01_weapon_F",
		"I_AA_01_weapon_F",
		"O_AT_01_weapon_F",
		"I_AT_01_weapon_F",
		"B_O_Parachute_02_F",
		"B_I_Parachute_02_F"]
		] call BIS_fnc_removeVirtualBackpackCargo;	// Remove OPFOR and Independent HMGs and GMGs

	[missionNamespace, 
		["launch_NLAW_F",
		"launch_B_Titan_F",
		"launch_B_Titan_short_F",
		"srifle_EBR_F",
		"srifle_LRR_F",
		"srifle_LRR_camo_F",
		"hgun_P07_F",
		"hgun_Pistol_heavy_01_F",
		"arifle_MXC_F",
		"arifle_MX_F",
		"arifle_MX_GL_F",
		"arifle_MX_SW_F",
		"arifle_MXM_F",
		"arifle_MXC_Black_F",
		"arifle_MX_Black_F",
		"arifle_MX_GL_Black_F",
		"arifle_MX_SW_Black_F",
		"arifle_MXM_Black_F",
		"arifle_SDAR_F",
		"arifle_TRG21_F",
		"arifle_TRG20_F",
		"arifle_TRG21_GL_F",
		"SGM_01_F"]
		] call BIS_fnc_addVirtualWeaponCargo;	// Add BLUFOR weapons to arsenal
		
	[missionNamespace,
		["NLAW_F",
		"Titan_AA",
		"Titan_AT",
		"Titan_AP",
		"20Rnd_762x51_Mag",
		"7Rnd_408_Mag",
		"16Rnd_9x21_Mag",
		"11Rnd_45ACP_Mag",
		"30Rnd_65x39_caseless_mag",
		"30Rnd_65x39_caseless_mag_Tracer",
		"100Rnd_65x39_caseless_mag",
		"100Rnd_65x39_caseless_mag_Tracer",
		"1Rnd_HE_Grenade_shell",
		"UGL_FlareWhite_F",
		"UGL_FlareGreen_F",
		"UGL_FlareRed_F",
		"UGL_FlareYellow_F",
		"UGL_FlareCIR_F",
		"1Rnd_Smoke_Grenade_shell",
		"1Rnd_SmokeRed_Grenade_shell",
		"1Rnd_SmokeGreen_Grenade_shell",
		"1Rnd_SmokeYellow_Grenade_shell",
		"1Rnd_SmokePurple_Grenade_shell",
		"1Rnd_SmokeBlue_Grenade_shell",
		"1Rnd_SmokeOrange_Grenade_shell",
		"20Rnd_556x45_UW_mag",
		"30Rnd_556x45_Stanag",
		"30Rnd_556x45_Stanag_Tracer_Red",
		"30Rnd_556x45_Stanag_Tracer_Green",
		"30Rnd_556x45_Stanag_Tracer_Yellow",
		"30Rnd_45ACP_Mag_SMG_01",
		"30Rnd_45ACP_Mag_SMG_01_tracer_green"]
		] call BIS_fnc_addVirtualMagazineCargo;	// Add BLUFOR magazines to arsenal

	[missionNamespace, "%ALL"] call BIS_fnc_addVirtualItemCargo;	// Add items to arsenal.
	[missionNamespace,
		["O_UavTerminal",
		"I_UavTerminal"]
		] call BIS_fnc_removeVirtualItemCargo;	// Remove OPFOR and Independent UAV terminals
	/*
	[missionNamespace,
		["ItemWatch",
		"ItemCompass",
		"ItemGPS",
		"ItemRadio",
		"ItemMap",
		"MineDetector",
		"Binocular",
		"Rangefinder",
		"NVGoggles",
		"NVGoggles_OPFOR",
		"NVGoggles_INDEP",
		"FirstAidKit",
		"Medikit",
		"ToolKit",
		"LaserDesignator",
		"B_UavTerminal",
		"muzzle_snds_H",
		"muzzle_snds_L",
		"muzzle_snds_M",
		"muzzle_snds_B",
		"muzzle_snds_acp",
		"optic_Arco",
		"optic_Hamr",
		"optic_Aco",
		"optic_Aco_smg",
		"optic_Holosight",
		"optic_Holosight_smg",
		"optic_SOS",
		"acc_flashlight",
		"acc_pointer_IR",
		"optic_MRCO",
		"optic_DMS",
		"optic_MRD",
		"optic_LRPS",
		"optic_NVS",
		"optic_Nightstalker",
		"optic_tws",
		"optic_tws_mg",
		"U_B_CombatUniform_mcam",
		"U_B_CombatUniform_mcam_tshirt",
		"U_B_CombatUniform_mcam_vest",
		"U_B_GhillieSuit",
		"U_B_HeliPilotCoveralls",
		"U_B_Wetsuit",
		"U_B_CombatUniform_mcam_worn",
		"U_B_CombatUniform_wdl",
		"U_B_CombatUniform_wdl_tshirt",
		"U_B_CombatUniform_wdl_vest",
		"U_B_CombatUniform_sgg",
		"U_B_CombatUniform_sgg_tshirt",
		"U_B_CombatUniform_sgg_vest",
		"U_B_SpecopsUniform_sgg",
		"U_B_PilotCoveralls",
		"U_BG_Guerilla1_1",
		"U_BG_Guerilla2_1",
		"U_BG_Guerilla2_2",
		"U_BG_Guerilla2_3",
		"U_B_CTRG_1",
		"U_B_CTRG_2",
		"U_B_CTRG_3",
		"U_B_survival_uniform",
		"U_I_G_Story_Protagonist_F",
		"U_I_G_resistanceLeader_F",
		"V_Rangemaster_belt",
		"V_BandollierB_khk",
		"V_BandollierB_cbr",
		"V_BandollierB_rgr",
		"V_BandollierB_blk",
		"V_BandollierB_oli",
		"V_PlateCarrier1_rgr",
		"V_PlateCarrier2_rgr",
		"V_PlateCarrier3_rgr",
		"V_PlateCarrierGL_rgr",
		"V_PlateCarrier1_blk",
		"V_PlateCarrierSpec_rgr",
		"V_Chestrig_khk",
		"V_Chestrig_blk",
		"V_Chestrig_oli",
		"V_TacVest_khk",
		"V_TacVest_brn",
		"V_TacVest_oli",
		"V_TacVest_blk",
		"V_TacVest_camo",
		"V_TacVest_blk_POLICE",
		"V_TacVestIR_blk",
		"V_TacVestCamo_khk",
		"V_I_G_resistanceLeader_F",
		"V_RebreatherB",
		"V_PlateCarrier_Kerry",
		"V_PlateCarrierL_CTRG",
		"V_PlateCarrierH_CTRG",
		"H_HelmetB",
		"H_HelmetB_camo",
		"H_HelmetB_paint",
		"H_HelmetB_light",
		"H_Booniehat_khk"]
	] call BIS_fnc_addVirtualItemCargo;	// Add BLUFOR equipment to arsenal
*/
} else {
	[missionNamespace, "%ALL"] call BIS_fnc_addVirtualBackpackCargo;
	[missionNamespace, "%ALL"] call BIS_fnc_addVirtualWeaponCargo;
	[missionNamespace, "%ALL"] call BIS_fnc_addVirtualMagazineCargo;
	[missionNamespace, "%ALL"] call BIS_fnc_addVirtualItemCargo;
};

// Pre-load Arsenal
["Preload"] call BIS_fnc_arsenal;

if (!isDedicated) then {
	0 = [] execVM "scripts\group_manager.sqf";
	0 = [true] execVM "scripts\chemlights.sqf";  
	0 = [] execVM "scripts\player_markers.sqf";
	0 = [] execVM "scripts\briefing.sqf";
	// AIS Injury System
	TCB_AIS_PATH = "scripts\ais_injury\";
	//{[_x] call compile preprocessFile (TCB_AIS_PATH+"init_ais.sqf")} forEach (if (isMultiplayer) then {playableUnits} else {switchableUnits});
	//{[_x] call compile preprocessFile (TCB_AIS_PATH+"init_ais.sqf")} forEach [p1,p2];
};
[] execVM "outlw_magRepack\MagRepack_init_sv.sqf";